#include <iostream>
#include <algorithm>

using namespace std;

string path;

void check(int x)
{
	string tmp;
	while(x)
	{
		int y = x % 10;
		if(y == 2 || y == 0 || y == 3) tmp.push_back(y);
		
	}
	reverse(tmp.begin(), tmp.end());
	path += tmp;
}

int main()
{
	for(int i = 1; i <= 2023; i++)
	{
		check(i);
	}
	cout << path << endl;
	return 0;
}
